home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / WINAVAIL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  853 b   |  39 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // MenuControl --> MenuItems --> FusionWindow
  8. //
  9.  
  10. #include "fliwin.h"
  11.  
  12. #ifdef __BCPLUSPLUS__
  13. #pragma hdrstop
  14. #endif
  15.  
  16. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  17. //
  18. // Available()
  19. //
  20. // Defines if an option is available
  21. //
  22. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  23.  
  24. void MenuManager::Available(int &Available)
  25. {
  26.   if (!NumberOfMenus)
  27.     return;
  28.  
  29.   if (!CurrentLevel)
  30.     (Menus[NumberOfMenus-1]->Option+
  31.       Menus[NumberOfMenus-1]->NumberOfOptions-1)
  32.         ->Available=&Available;
  33.   else
  34.     (SubMenuTrack[CurrentLevel-1]->Option+
  35.       SubMenuTrack[CurrentLevel-1]->NumberOfOptions-1)
  36.         ->Available=&Available;
  37. }
  38.  
  39.